<form class="layui-form layui-form-pane" action="{:U('')}" method="post" ajaxSubmit
<if condition="!$info">
    data-option="{
    layer:{
        end:function () {
            layui.layer.closeAll();
            layui.table.reload('dataTable');
        }
    }}"
</if>
>
    <icy8:formItem label="角色名">
        <input type="text" class="layui-input" name="title" value="{$info.title}" />
    </icy8:formItem>
    <icy8:formItem label="角色代码">
        <input class="layui-input" type="text" name="code" value="{$info.code}" />
    </icy8:formItem>
    <icy8:formItem label="角色状态" pane="1">
        <input type="radio" name="status" title="正常" value="1"
        <if condition="$info['status'] eq 1 or !isset($info['status'])">checked</if>
        />
        <input type="radio" name="status" title="禁用" value="0"
        <if condition="isset($info['status']) and $info['status'] eq 0">checked</if>
        />
    </icy8:formItem>
    <icy8:formItem label="">
        <input type="hidden" name="id" value="{$info.id}" />
        <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm">保存</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" onclick="ICY8.closeThisDialog(this)">取消</button>
    </icy8:formItem>
</form>